package org.ezplatform.office.forum.service;

import java.util.List;

import javax.transaction.Transactional;

import org.ezplatform.core.dao.jpa.JpaBaseDao;
import org.ezplatform.core.service.BaseService;
import org.ezplatform.office.forum.dao.ForumIntegralRuleDao;
import org.ezplatform.office.forum.entity.ForumIntegralRule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @desc 论坛积分规则Service
 * @create 2017-11-15 10:16
 **/
@Service
@Transactional
public class ForumIntegralRuleService extends BaseService<ForumIntegralRule, String> {

    private final Logger log = LoggerFactory.getLogger(ForumIntegralRuleService.class);
    
    @Autowired
    private ForumIntegralRuleDao forumIntegralRuleDao;

    @Override
    protected JpaBaseDao<ForumIntegralRule, String> getEntityDao() {
        return forumIntegralRuleDao;
    }
    
    public List<ForumIntegralRule> getForumIntegralRule(){
    	return forumIntegralRuleDao.getForumIntegralRule();
    }

}
